<?php
include "connectStoreDB.php";

$pri=$_POST["pri"];
$cat=$_POST["cat"];

$sql="INSERT INTO products(price,product_category_name) VALUES ($pri,'$cat')";

mysqli_query($conn, $sql);
echo "product added!";

//close connection
mysqli_close($conn);

//redirect back to admin page
header("location:admin.php");
?>